package com.telit.firecommand.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * app_task_feedback
 *
 * @author
 */
@ApiModel(value = "AppTaskFeedback")
@Data
public class AppTaskFeedback implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 任务id
     */
    @ApiModelProperty(value = "任务id")
    @NotNull(message = "任务id不能为空")
    private Long taskId;

    /**
     * 任务下发人Id
     */
    @TableField(exist = false)
    private Long issueTaskId;
    /**
     * 巡护类型
     */
    @TableField(exist = false)
    private String type;
    /**
     * 反馈人id
     */
    @ApiModelProperty(value = "反馈人id")
    @NotNull(message = "反馈人id不能为空")
    private Long feedbackPersonId;

    /**
     * 反馈人姓名
     */
    @ApiModelProperty(value = "反馈人姓名")
    private String feedbackPersonName;

    /**
     * 反馈内容
     */
    @ApiModelProperty(value = "反馈内容")
    private String content;

    /**
     * 火情类型 0虚假火情 1真实火情
     */
    @ApiModelProperty(value = "火情类型 0虚假火情 1真实火情")
    private Integer fireType;

    /**
     * 反馈时间
     */
    @ApiModelProperty(value = "反馈时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date feedbackTime;

    /**
     * 多媒体url
     */
    @ApiModelProperty(value = "多媒体url")
    private String mediaUrl;

    /**
     * 任务反馈来源
     */
    @ApiModelProperty(value = "任务反馈来源 1护林员 2飞手 3无人机")
    private String resource;

    @ApiModelProperty("任务下发时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @TableField(exist = false)
    private Date assignTaskTime;

    @ApiModelProperty(value = "多媒体url集合")
    @TableField(exist = false)
    private List<String> mediaUrlList;

    //---------------------扩展字段-----------------------//


    /**
     * 火情id
     */
    @ApiModelProperty(value = "火情id")
    @TableField(exist = false)
    private Long fireId;


    @ApiModelProperty(value = "报警时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @TableField(exist = false)
    private Date reportTime;

    /**
     * 区域名称
     */
    @ApiModelProperty(value = "区域名称")
    @TableField(exist = false)
    private String districtName;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址")
    @TableField(exist = false)
    private String detailAddress;

    /**
     * 经度
     */
    @ApiModelProperty(value = "经度")
    @TableField(exist = false)
    private String longitude;

    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度")
    @TableField(exist = false)
    private String latitude;

    /**
     * 报警源类型
     */
    @ApiModelProperty(value = "报警源类型")
    @TableField(exist = false)
    private String reportResource;

    /**
     * 报警源名称
     */
    @ApiModelProperty(value = "报警源名称")
    @TableField(exist = false)
    private String sourceName;


    private static final long serialVersionUID = 1L;
}